import com.zjy.software.utils.P;

public class TwoArray {
	public static void main(String[] args) {
		int[][] arr = { { 1, 2 ,3}, { 3, 4 ,5} };
		int[][] twoArray = new int[5][6];

		//對於一行赋值
		arr[0] = new int[3];
		
		//对于单个元素赋值
		arr[0][0] = 1;


		        int [][] xy=new int[3][4];
				for (int i = 0; i < xy.length; i++) {
					for (int j = 0; j < xy[i].length; j++) {
						System.out.print(" " + xy[i][j]);
					}
					System.out.println();
				}

				P.p("下面是增强型循環");
				for (int[] x :xy){
					for (int y : x) {
						System.out.print(y);
					}
					System.out.println();
				}
		
	}
}
